Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 7 - Process Management / Process Management Reference
Application-Defined Functions


MyProcessCallbackFunction

Open Transport calls your process callback function when the scheduled task associated with it occurs. You use this function to specify Open Transport functions that you want to execute at specific system or deferred task times.

C INTERFACE
void MyProcessCallbackFunction(void* arg)
C++ INTERFACES
None. C++ applications use the C interface to this function.

PARAMETERS
arg
A pointer to application-defined data, typically providing context information.
DESCRIPTION
The OTCreateSystemTask and the OTCreateDeferredTask functions return a reference that identifies the newly created task so that you can schedule it for execution at specified times. Among other data, the task contains a pointer to your process callback function. When the scheduled task-execution time occurs, Open Transport calls your process callback function and passes it the data in the arg parameter.

SEE ALSO
For more information about how to use your process callback function, see the section "Using System and Deferred Tasks," beginning on page 7-4.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996